package com.itheima.reggie.common;

/*
创建本地线程
*/
public class BaseContext {

    public static ThreadLocal<Long> threadLocal = new ThreadLocal<>();
    public static Long getCurrentId() {
        return threadLocal.get();
    }
    public static void setCurrentId(Long id) {
       threadLocal.set(id);
    }
}
